package com.uicole.push.server;

import java.net.URLClassLoader;
import java.util.Arrays;

import org.apache.log4j.Logger;

public class App {
	private static final Logger logger = Logger.getLogger(App.class);

	public static void main(String[] args) {
		logger.debug("test");
	}
	public String say(String str) throws ClassNotFoundException{
		Class.forName("org.springframework.aop.config.AopNamespaceUtils");
		return str;
	}
	public  void dumpClasspath(ClassLoader loader)
    {
        System.out.println("Classloader " + loader + ":");
 
        if (loader instanceof URLClassLoader)
        {
            URLClassLoader ucl = (URLClassLoader)loader;
            System.out.println("\t" + Arrays.toString(ucl.getURLs()));
        }
        else
            System.out.println("\t(cannot display components as not a URLClassLoader)");
 
        if (loader.getParent() != null)
            dumpClasspath(loader.getParent());
    }
}
